package com.heima.wemedia.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.dtos.ChannelDto;
import com.heima.model.wemedia.pojos.WmChannel;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * <p>
 * 频道信息表 服务类
 * </p>
 *
 * @author itheima
 * @since 2022-03-16
 */
public interface WmChannelService extends IService<WmChannel> {
    /**
     * 修改频道
     * @param wmChannel
     * @return
     */
    public ResponseResult  updateChannels( WmChannel wmChannel);
    /**
     * 保存用户
     *
     * @param wmChannel
     * @return
     */
    public ResponseResult saveChannels(WmChannel wmChannel);

    /**
     * 频道名称模糊分页查询
     *
     * @param dto
     * @return
     */
    public ResponseResult checkListChannels(ChannelDto dto);

    /**
     * 平台管理-删除频道
     *
     * @param id
     * @return
     */
    public ResponseResult delChannels(Integer id);

    /**
     * 查询所有的频道
     *
     * @return
     */
    public ResponseResult getChannels();

}
